<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/taglib/c.tld" prefix="c"%>
<%
String path = request.getContextPath();
%>
<script src="<%=path %>/plugins/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<%=path%>/js/city/Area.js"></script>
<script type="text/javascript" src="<%=path%>/js/city/AreaData_min.js"></script>
<script type="text/javascript">

	$(function() {
		areaID = '${TblCommDimForm.city }';
		if(areaID.length == 6)
			$("#city").text(getAreaNamebyID(areaID));
	});

</script>

<jsp:include page="/share/top.jsp" />
<div class="box box-primary">
  <div class="box-frame">
   <table class="layui-table" cellpadding="0" bordercolor="#dbdbdb" cellspacing="0" border='1'>
        <thead>
          <tr>
            <th colspan="2" class="th0">小区信息详情</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td class="t0">小区编号：</td>
            <td class="t1"><c:out value="${TblCommDimForm.commCode}"></c:out></td>
          </tr>
          <tr>
            <td class="t0">创建时间：</td>
            <td class="t1">${TblCommDimForm.createTime}</td>
          </tr>
          <tr>
            <td class="t0">小区名称：</td>
            <td class="t1"><c:out value="${TblCommDimForm.commName}"></c:out></td>
          </tr>
          <tr>
            <td class="t0">小区所在城市：</td>
            <td id = "city" class="t1"><c:out value="${TblCommDimForm.city}"/></td>
          </tr>
          <tr>
            <td class="t0">小区状态</td>
            <td class="t1">
            <c:choose>
            		<c:when test="${TblCommDimForm.commState=='test'}">测试状态</c:when>
            		<c:when test="${TblCommDimForm.commState=='deploy'}">部署状态</c:when>
            		<c:when test="${TblCommDimForm.commState=='operate'}">运营状态</c:when>
            		<c:otherwise>未知状态</c:otherwise>
            </c:choose>
            </td>
          </tr>
          <tr>
            <td class="t0">小区密码</td>
            <td class="t1"><c:out value="${TblCommDimForm.commPassword}"></c:out></td>
          </tr>

          <tr>
            <td class="t0">小区围墙机数量</td>
            <td class="t1"><c:out value="${TblCommDimForm.gateDevNum}"></c:out></td>
          </tr>
          <tr>
            <td class="t0">小区管理机数量</td>
            <td class="t1"><c:out value="${TblCommDimForm.manageDevNum}"></c:out></td>
          </tr>
          
          <tr>
            <td class="t0">小区本地服务器</td>
            <td class="t1"><c:out value="${TblCommDimForm.localServer}"></c:out></td>
          </tr>

          <tr>
            <td class="t0">小区PSNT语音网关</td>
            <td class="t1">
              <c:if test="${empty TblCommDimForm.pstnComm}">无</c:if>
              <c:if test="${not empty TblCommDimForm.pstnComm}">绑定在小区[${TblCommDimForm.pstnComm}]</c:if>
            </td>
          </tr>
          <tr>
            <td class="t0">小区详情</td>
            <td>${TblCommDimForm.commAdds}</td>
          </tr>
          
        </tbody>
      </table>

   <input type="button" value="返回" class="layui-btn layui-btn-small" onclick="history.back(-1);">

  </div>
</div>
<jsp:include page="/share/foot.jsp" />
